package com.zzyl.mapper;

import com.zzyl.entity.customer.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MemberMapper {
	/**
	 * 根据条件查询一个
	 * @param member
	 * @return
	 */
	Member getOne(Member member);
	
	/**
	 * 新增
	 * @param member
	 */
	void insert(Member member);
	
	/**
	 * 根据条件修改
	 * @param member
	 */
	void update(Member member);
	@Select("select * from member where open_id = #{wxOpenId}")
	Member login(String wxOpenId);

	void save(Member member);

	void updateopp(Member member);
	
	
@Select("select * from member where id = #{userId}")
	Member cancelledCount(Long userId);
}
